package csc.daonjpa.java.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "log")
public class Log implements Serializable{

	private static final long serialVersionUID = 1L;
	
		@Id
		@Column(name = "logid")
		@GeneratedValue(strategy=GenerationType.AUTO)
		private Long logId;
		
		@Column(name = "content")
		private String content;
		
		@Column(name = "dateandtime")
		private String dateTime;
		
		@ManyToOne
		@JoinColumn(name = "id_customer")
		private Customer cusLog;

		public Long getLogId() {
			return logId;
		}

		public void setLogId(Long logId) {
			this.logId = logId;
		}

		public String getContent() {
			return content;
		}

		public void setContent(String content) {
			this.content = content;
		}

		public String getDateTime() {
			return dateTime;
		}

		public void setDateTime(String dateTime) {
			this.dateTime = dateTime;
		}

		public Customer getCusLog() {
			return cusLog;
		}

		public void setCusLog(Customer cusLog) {
			this.cusLog = cusLog;
		}		

		public Log() {
			super();
		}

		public Log(Long logId, String content, String dateTime, Customer cusLog) {
			super();
			this.logId = logId;
			this.content = content;
			this.dateTime = dateTime;
			this.cusLog = cusLog;
		}
		
		
}
